<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        [v-cloak] {
            display: none;
        }
    </style>
</head>
<body>{{1+2}}
    <div id="app">
        <div v-cloak>{{msg}}</div>
        <div v-text='msg'></div>
        <div>{{str}}</div>
    </div>
    <script src="js/vue.js"></script>
    <script>
        var vm = new Vue({
            el:'#app',      //元素挂载位置，即选定的区域
            data:{          //模型数据
                msg:'hello vue!',
                str:'使用vue插入的内容'
            }
        })
    </script>
</body>
</html>